package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.domain.PageResult;
import cn.wolfcode.crm.qo.QueryObject;
import cn.wolfcode.crm.util.JsonResult;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {
    void delete(Long id);

    void save(Permission permission);

    Permission get(Long id);

    List<Permission> listAll();

    void update(Permission permission);

    /**
     * 分页
     *
     * @param qo
     * @return
     */
    PageInfo<Permission> query(QueryObject qo);

    /**
     * 加载权限
     */
    JsonResult reload();
}
